<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of LoggerPlugin
 *
 * @author wangxi9o
 */
class LoggerPlugin extends Zend_Controller_Plugin_Abstract
{
    /**
    * @var Zend_Log
    */
    protected $_logger;
    public function _construct($filename)
    {
        
        $logconfig = new Zend_Config_Ini($filename,null," ");
        $logger = Zend_Log::factory($logconfig);//->log("Init Application",Zend_Log::INFO);
        $this->_logger = $logger;
    }
    
    public function log($message, $priority)
    {
        $this->_logger->log($message, $priority);
    }
}

?>
